7. Divide & Conquer
Divide And Conquer
The divide and conquer family of DSA is all around splitting up the problem into subproblems that are easily solvable, and then merging at the end (if needed)
A fair amount of sorting algorithms, particularly merge sort and quick sort are divide and conquer algorithms, usually taking time to do something by breaking down a problem of into individual sub-components and merging them back together
GCD and LCM
Euclidean Algorithm:
So you recursively break down our 2 components, A and B, until one of them is 0 which ultimately gives us the final result